package com.gzbugu.polytechsasia.service.impl;

import com.gzbugu.polytechsasia.factory.DAOFactory;
import com.gzbugu.polytechsasia.service.IUpdateArticleService;
import com.gzbugu.polytechsasia.vo.Article;

public class UpdateArticleService implements IUpdateArticleService{
	/**
	 * 更新Article
	 * 
	 * @param article
	 * 			Article instance
	 * return 操作是否成功
	 */
	public boolean updateArticle(Article article){
		boolean flag = false ;
		try{
			DAOFactory.getArticleDAO().update(article) ;
			flag = true ;
		} catch(Exception e){
			e.printStackTrace() ;
		}
		
		return flag ;
	}
}
